package com.example.restaurantclient.Entities;

public class ShopCart {
    private int userId;
    private int dishId;
    private int number;//购买的数量
    private double unitPrice;//单价

    public ShopCart(int userId, int dishId, int number) {
        this.userId = userId;
        this.dishId = dishId;
        this.number = number;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getDishId() {
        return dishId;
    }

    public void setDishId(int dishId) {
        this.dishId = dishId;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }
}
